package com.windoent.yugioh.adapter.brvah;

import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.windoent.yugioh.R;
import com.windoent.yugioh.utils.SimpleUtils;
import com.windoent.yugioh.widget.RoundImageView;

/**
 * author : robert
 * date   : 2021/5/6 15:26
 * desc   :
 */
public class BaoMingContestantAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public BaoMingContestantAdapter() {
        super(R.layout.item_contsetant_bao_ming, null);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, String item) {
        RoundImageView sameitem_head = helper.getView(R.id.image);
        SimpleUtils.loadImageForView(getContext(), sameitem_head, item, R.drawable.img_official_avatar_android);
    }

}